package com.example.demo.service;

import com.example.demo.mapper.UserMapper;
import com.example.demo.model.UserInfo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: H_tao_X
 * Date: 2022-08-04
 * Time: 20:57
 */
@Service
public class UserService {
    @Resource
    private UserMapper userMapper;
    public int add(UserInfo userInfo){
        try {
            Thread.sleep(3*1000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        return userMapper.add(userInfo);
    }
}
